package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.lihaoming.BaseRespVo1;
import com.cskaoyan.bean.lihaoming.DashBoardVo;
import com.cskaoyan.service.AdminService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lihaoming
 * @Description
 * 响应：{"errno":0,"data":{"goodsTotal":239,"userTotal":1,"productTotal":244,"orderTotal":0},"errmsg":"成功"}
 * @Create 2022-06-25 17:38
 * @Version
 */
@RestController
public class DashBoardController {
  @Autowired
    AdminService adminService;
  @RequestMapping("admin/dashboard")
    public BaseRespVo1 dashBoard(){
        DashBoardVo dashBoardVo=adminService.queryTotal();
        return BaseRespVo1.ok(dashBoardVo);
    }
    @RequestMapping("admin/profile/nnotice")
    public BaseRespVo1 nnotice(){
        return BaseRespVo1.ok(0);
    }
}
